#include <iostream>
#include "net/server.h"
#include "app/mainapp.h"

int main(int argc, char const *argv[]){
    std::cout<<"hello QinChat 1"<<std::endl;

    std::cout<<"init app"<<std::endl;
    QinChat::App::CMainApp mainApp;
    QinChat::Net::CServer server;
    if (!server.Init()){
        std::cout<<"init error\n";
        return 1;
    }

    std::cout<<"running\n";

    server.Run();

    std::cout<<"finished\n";
    // const list_str_ipaddrs listStrIpaddr = UrlToIpAddress("www.baidu.com");
    // PrintListStrIpaddress(listStrIpaddr);
    return 0;
}
